export default[
    {
      path: '/register',
      name: 'register',
      meta:{title:"注册",permission_no:2},
      component: () => import('../views/Register.vue')
    },
    {
      path: '/login',
      name: 'login',
      meta:{title:"登录"},
      component: () => import('../views/Login.vue')
    },
    {
        path: '/index',
        name: 'index',
        meta:{title:"首页",permission_no:1},
        component: () => import('../views/Index.vue'),
        children:[
            {
                path: '/index/business',
                name: 'business',
                meta:{title:"出差申请",permission_no:11},
                component: () => import('../views/Index/Business.vue')
            },
            {
                path: '/index/leave',
                name: 'leave',
                meta:{title:"请假申请",permission_no:12},
                component: () => import('../views/Index/Leave.vue')
            },
            {
                path: '/index/outside',
                name: 'outside',
                meta:{title:"外勤打卡",permission_no:13},
                component: () => import('../views/Index/Outside.vue')
            },
            {
                path: '/index/work',
                name: 'work',
                meta:{title:"加班申请",permission_no:14},
                component: () => import('../views/Index/Work.vue')
            },
            {
                path: '/index',
                redirect:'/index/business'
            },
            {
                path: '*',
                component: () => import('../views/NotFound.vue')
            },
        ]
    },
    {
        path: '/',
        redirect:'/index'
    },
    {
        path: '/*',
        component: () => import('../views/NotFound.vue')
    },
   
]